package work.string;

public class Problem344 {
    public void reverseString(char[] s) {
        int length = s.length - 1;
        int head = 0;
        while (head < length) {
            char temp = s[head];
            s[head] = s[length];
            s[length] = temp;
        }
    }
}
